home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group03a.txt
/
000035_icon-group-sender_Wed Mar 12 12:51:32 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2003-12-22
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id h2CJoBg04037
for icon-group-addresses; Wed, 12 Mar 2003 12:50:11 -0700 (MST)
Message-Id: <200303121950.h2CJoBg04037@baskerville.CS.Arizona.EDU>
Date: 12 Mar 2003 16:41:41 GMT
From: rjhare@ed.ac.uk
Subject: Re: Sorting lists
To: swampler@noao.edu
cc: icon-group@cs.arizona.edu
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
> If you do have a list of lists of strings, you *can* use
> sortf(X,i) instead of sort() to sort by the first element in
> each of the sublists, so:
>
> b := sortf(a, 1)
>
> would do what you want in the above example.
That's it! Thanks very much - the book is at home and I use the internal sort
command so rarely that I simply couldn't remembe - thanks again!
Roger
------------------------------------------------------------------------------
`Your wild oats have come home to roost.'
------------------------------------------------------------------------------